package com.seven.mybatis.mapper;

import com.seven.mybatis.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public interface UserMapper {


    //增加
    public Integer bc_createUser(User user);

    // 删除
    public void bc_removeUserById(Integer id);

    //修改
    public User bc_changeUserById(Integer id);

    //更新密码
    public void bc_resetPasswordByPhoneNumber(@Param("phone") String phone, @Param("password") String password);

    //查询
    public User bc_queryUserByPhoneNumber(String phone);

    public User bc_queryUserById(Integer id);

    //查询
    public User bc_queryUserByToken(String token);


}
